package com.secxiot.provider.user.dao;

import com.secxiot.provider.user.entity.UserEmergencyContact;
import com.secxiot.provider.user.entity.UserEmergencyContactExample;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface UserEmergencyContactDao {
    int countByExample(UserEmergencyContactExample example);

    int deleteByExample(UserEmergencyContactExample example);

    int deleteByPrimaryKey(Long id);

    int insert(UserEmergencyContact record);

    int insertSelective(UserEmergencyContact record);

    List<UserEmergencyContact> selectByExample(UserEmergencyContactExample example);

    UserEmergencyContact selectByPrimaryKey(Long id);

    int updateByExampleSelective(@Param("record") UserEmergencyContact record, @Param("example") UserEmergencyContactExample example);

    int updateByExample(@Param("record") UserEmergencyContact record, @Param("example") UserEmergencyContactExample example);

    int updateByPrimaryKeySelective(UserEmergencyContact record);

    int updateByPrimaryKey(UserEmergencyContact record);
}